Skip to content

Instantly share code, notes, and snippets.

@alpaca-honke
Created May 27, 2023 01:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpaca-honke/8b9763e89f5642596ec022926f573e5d to your computer and use it in GitHub Desktop.
Save alpaca-honke/8b9763e89f5642596ec022926f573e5d to your computer and use it in GitHub Desktop.
Misskeyにおいて、他のユーザーのノートをリノートして、そのリノートを自分のプロフィールにピン留めするプラグインです。リノート解除でピン留めも解除されます。
/// @ 0.13.2
### {
name: "他のユーザーのノートをリノートして自分のプロフィールにピン留め"
version: 0.0
author: "Alkappa/alpaca-honke"
description: "他のユーザーのノートをリノートして、そのリノートを自分のプロフィールにピン留めします。リノート解除でピン留めも解除されます。"
permissions: ["write:notes", "write:account"]
config: null
}
@RenoteAndPin(note) {
let renote_note = Mk:api("notes/create" {renoteId: note.id})
let renote_id = renote_note.createdNote.id
Mk:api("i/pin", {noteId: renote_id})
Mk:dialog("完了" "ピン留めしました" "success")
}
Plugin:register_note_action("RNしてピン留め" RenoteAndPin)
@alpaca-honke
Copy link
Author

alpaca-honke commented May 27, 2023

AiScript v0.11系向け↓(@emtk@mkkey.netさんによる)
https://mkkey.net/notes/9f8xesdckr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment