diff options
| author | Andrew Branson <andrew.branson@jolla.com> | 2026-02-12 15:13:50 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@jolla.com> | 2026-02-12 15:45:59 +0100 |
| commit | 7e10e89d72cc3a2b5eb314aa76c340793e5e26dd (patch) | |
| tree | 7de1130148126ad29a75ec83166b4812440ca77a /transferengine-plugins/mastodonshareplugin/mastodonplugininfo.cpp | |
| parent | bce74e963abeb96a9c335f5461611dee544abc4c (diff) | |
Add support for text and link sharing in Mastodon transfer plugin
Diffstat (limited to 'transferengine-plugins/mastodonshareplugin/mastodonplugininfo.cpp')
| -rw-r--r-- | transferengine-plugins/mastodonshareplugin/mastodonplugininfo.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/transferengine-plugins/mastodonshareplugin/mastodonplugininfo.cpp b/transferengine-plugins/mastodonshareplugin/mastodonplugininfo.cpp index bc66752..a9cc1b7 100644 --- a/transferengine-plugins/mastodonshareplugin/mastodonplugininfo.cpp +++ b/transferengine-plugins/mastodonshareplugin/mastodonplugininfo.cpp @@ -6,7 +6,9 @@ MastodonPluginInfo::MastodonPluginInfo() , m_mastodonShareServiceStatus(new MastodonShareServiceStatus(this)) { m_capabilities << QLatin1String("image/jpeg") - << QLatin1String("image/png"); + << QLatin1String("image/png") + << QLatin1String("text/x-url") + << QLatin1String("text/plain"); connect(m_mastodonShareServiceStatus, &MastodonShareServiceStatus::serviceReady, this, &MastodonPluginInfo::serviceReady); @@ -42,9 +44,8 @@ void MastodonPluginInfo::serviceReady() info.setMethodId(QLatin1String("Mastodon")); info.setMethodIcon(QLatin1String("image://theme/icon-l-mastodon")); - info.setShareUIPath(QLatin1String("/usr/share/nemo-transferengine/plugins/sharing/MastodonShareImage.qml")); + info.setShareUIPath(QLatin1String("/usr/share/nemo-transferengine/plugins/sharing/MastodonSharePost.qml")); info.setCapabilities(m_capabilities); - m_info << info; } |
