Skip to content

Instantly share code, notes, and snippets.

@alpaca-honke
Last active November 23, 2025 23:53
Show Gist options
  • Select an option

  • Save alpaca-honke/39ecd3882fba4a717fa9f155b2c47297 to your computer and use it in GitHub Desktop.

Select an option

Save alpaca-honke/39ecd3882fba4a717fa9f155b2c47297 to your computer and use it in GitHub Desktop.
Misskeyにおいて、他のユーザーのノートをリノートして、そのリノートを自分のプロフィールにピン留めするプラグインです。リノート解除でピン留めも解除されます。
/// @ 1.1.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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment