ShareShortcuts
Создать форк «Mastgur»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы blue получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
49K
Сохранено
1
Действия
6
Категория
Social Network
Версия
1.0
Язык
EN

Просмотр

![image](https://user-images.githubusercontent.com/43663476/127241975-4e26a587-1cea-49c3-a655-1a14138162a7.png)

## Media post to Mastodon for iOS via Imgur upload.

The upcoming [Mastodon for iOS app](https://joinmastodon.org/apps) currently has a single Siri Shortcut action - "Post [Text] on Mastodon" - which only allows one to pass plain text to the app (and then to the service.) When a friend of mine [replied](https://mstdn.cloud.themaymeow.com/@emma/106654320972606699) to my links to [my Share Sheet-destined Mastodon for iOS Siri Shortcut](https://github.com/extratone/i/issues/85) requesting for clarification, I just sortof... whipped this one up without any revision or hesitation, and then felt compelled to publish it when it immediately functioned correctly on [its very first run](https://mastodon.social/@DavidBlue/106655155851383761). (100% certain that success made it a first to do so among my various projects in Siri Shortcuts.)

⇨ [**Video Demo**](https://user-images.githubusercontent.com/43663476/127242192-d55b5a1a-661f-44b8-8c46-746930bc132c.MOV)

## Steps

1. Prompts to select from Photos app (single file mode.)

2. Prompts text input for the (optional) Title of the Imgur post.

3. Prompts text input for the (optional) Description of the Imgur post - by default, I have also added #iOS and #social-media, but obviously, please personalize these for your own use.

4. Uploads the media to Imgur *anonymously* (by Default) and retrieves the Direct URL to the corresponding post.

5. Prompts text input in front of said retrieved URL for the actual content of the Toot.

6. Posts <your text> <imgur url> [to Mastodon](https://mastodon.social/@DavidBlue/106655409169365663)!

### Mastodon Details

* "[What's that?](https://joinmastodon.org)"

* [joinmastodon.org/apps](https://joinmastodon.org/apps)

* [The Mastodon Project's Patreon Page](https://www.patreon.com/mastodon) (Become a patron to gain beta access to the iOS app, coming very soon!)

* [My celebration of the *third-party* Mastodon apps currently available on iOS](https://bilge.world/mastodon-ios-apps)

***

## Contact

* [**VCF Contact Card**](https://bit.ly/whoisdavidblue)

* [Email](mailto:davidblue@extratone.com)

* [Twitter](https://twitter.com/NeoYokel)

* [Mastodon](https://mastodon.social/@DavidBlue)

* [Discord](https://discord.gg/0b9KQUKP858b0iZF)

* [*Everywhere*](https://www.notion.so/rotund/9fdc8e9610b34b8f991ebc148b760055?v=c170b58650c04fbdb7adc551a73d16a7)...

![Masto Mascot iOS Art](https://i.snap.as/Y624NGHM.jpg)

Что нового

Версия 1.0

First release

История версий
1.0 28 июл 2021 г.

First release

Что делает

Действий: 6
  1. Select Photos
  2. Imgur Upload
  3. Copy to Clipboard
  4. Text
  5. Send Post
    org.joinmastodon.app
  6. Comment
    ![image](https://user-images.githubusercontent.com/43663476/127241975-4e26a587-1cea-49c3-a655-1a14138162a7.png) ## Media post to Mastodon for iOS via Imgur upload. The upcoming [Mastodon for iOS app](https://joinmastodon.org/apps) currently has a si…

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/photos'
#define color green
#define glyph magicWand

const Photos = selectPhotos()
rawAction("is.workflow.actions.imgur.upload", {
	"WFImgurAnonymous": true,
	"WFImgurDescription": "{Ask} #iOS #social-media",
	"WFImgurDirectLink": true,
	"WFImgurTitle": "{Ask}",
	"WFInput": "Photos"
})
setClipboard(ImgurURLs)
rawAction("org.joinmastodon.app.SendPostIntent", {
	"ShowWhenRun": false,
	"content": "{}"
})
/*
![image](https://user-images.githubusercontent.com/43663476/127241975-4e26a587-1cea-49c3-a655-1a14138162a7.png)

## Media post to Mastodon for iOS via Imgur upload.

The upcoming [Mastodon for iOS app](https://joinmastodon.org/apps) currently has a single Siri Shortcut action - "Post [Text] on Mastodon" - which only allows one to pass plain text to the app (and then to the service.) When a friend of mine [replied](https://mstdn.cloud.themaymeow.com/@emma/106654320972606699) to my links to [my Share Sheet-destined Mastodon for iOS Siri Shortcut](https://github.com/extratone/i/issues/85) requesting for clarification, I just sortof... whipped this one up without any revision or hesitation, and then felt compelled to publish it when it immediately functioned correctly on [its very first run](https://mastodon.social/@DavidBlue/106655155851383761). (100% certain that success made it a first to do so among my various projects in Siri Shortcuts.)

⇨ [Video Demo](https://user-images.githubusercontent.com/43663476/127242192-d55b5a1a-661f-44b8-8c46-746930bc132c.MOV)

## Steps

1. Prompts to select from Photos app (single file mode.)
2. Prompts text input for the (optional) Title of the Imgur post.
3. Prompts text input for the (optional) Description of the Imgur post - by default, I have also added #iOS and #social-media, but obviously, please personalize these for your own use.
4. Uploads the media to Imgur *anonymously* (by Default) and retrieves the Direct URL to the corresponding post.
5. Prompts text input in front of said retrieved URL for the actual content of the Toot.
6. Posts <your text> <imgur  url> [to Mastodon](https://mastodon.social/@DavidBlue/106655409169365663)!

### Mastodon Details

* "[What's that?](https://joinmastodon.org)"
* [joinmastodon.org/apps](https://joinmastodon.org/apps)
* [The Mastodon Project's Patreon Page](https://www.patreon.com/mastodon) (Become a patron to gain beta access to the iOS app, coming very soon!)
* [My celebration of the *third-party* Mastodon apps currently available on iOS](https://bilge.world/mastodon-ios-apps)

***
## Contact
* [VCF Contact Card](https://bit.ly/whoisdavidblue)
* [Email](mailto:[email protected]) 
* [Twitter](https://twitter.com/NeoYokel)
* [Mastodon](https://mastodon.social/@DavidBlue)
* [Discord](https://discord.gg/0b9KQUKP858b0iZF)
* [*Everywhere*](https://www.notion.so/rotund/9fdc8e9610b34b8f991ebc148b760055?v=c170b58650c04fbdb7adc551a73d16a7)...


![Masto Mascot iOS Art](https://i.snap.as/Y624NGHM.jpg)
*/
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от blue

См. все

Вам также может понравиться

См. все
Реклама