un truc nul avec iceshrimp : y'a pas de système de suppresion automatique de post (comme masto). à moins que je ne trouve pas l'option :thonking:
=> More informations about this toot | More toots from minybolito@peculiar.florist
@minybolito
Pas trouvé non plus, mais avec les options de recherche/filtre, c'est assez facile d'afficher mes propres posts de telle date à telle date (avec ou sans les boosts) et de supprimer (à la main, certes), ceux que je veux.
Mais s'il y a un autre moyen, je prends !
=> More informations about this toot | More toots from PebbleOnEarth@peculiar.florist
@PebbleOnEarth @minybolito J'avais fait un script pour ça, je sais pas s'il marche encore parce que peut-être que la version d'AiScript a été mise à jour...
=> More informations about this toot | More toots from Varpie@peculiar.florist
@PebbleOnEarth @minybolito Hmm, je l'avais mis sur le repo de Firefish mais c'est maintenant mort, donc euh je sais pas si je peux le retrouver :blob_nervous2:
Mais en tout cas, c'est faisable avec un script :akko_thumbup:
=> More informations about this toot | More toots from Varpie@peculiar.florist
@Varpie
Merci d'avoir cherché en tout cas ! :meow_heart_hug:
@minybolito
=> More informations about this toot | More toots from PebbleOnEarth@peculiar.florist
@PebbleOnEarth ah ouais pas bête je vais tenter comme ça pour faire du tri ! merciii
=> More informations about this toot | More toots from minybolito@peculiar.florist
@minybolito pas trouvé non plus et le logiciel est en pleine réécriture. Donc on aura surtout des maj de sécurité puis migration une fois la parité des fonctions atteintes.
=> More informations about this toot | More toots from snoopy@peculiar.florist
@minybolito @Varpie a justement fait un plugin qui permet de faire cela !
Je m’étais noté le code mais je ne sais pas s’il y a une version plus à jour.
[#]## {
name: "Old notes cleanup"
version: "0.1"
author: "@Varpie@peculiar.florist"
description: "A plugin to automatically remove old posts."
permissions: ["write:notes"]
config: {
debug: {
type: "boolean"
label: "Enable Debugging"
description: "Write debugging information to the console."
default: no
}
daysToKeep: {
type: "number"
label: "Days to keep"
description: "How many days you want to keep your notes before they are deleted."
default: 90
}
loopTime: {
type: "number"
label: "Loop time"
description: "How often the cleanup operation is repeated (in seconds)."
default: 3600
}
}
}
@debug(comment) {
? (Plugin:config.debug = yes) {
$comment <- Arr:join(["🔌 Plugin: " comment])
print(comment)
}
}
@cleanup() {
debug("Cleanup started")
#currentTime = Date:now()
// Date:now returns current UNIX time in ms, so we want to divide it by 1000 to have it in seconds, then remove *60 for minutes, *60 for hours, *24 for days
#timeToKeep = (Math:floor((currentTime / 1000)) - (((Plugin:config.daysToKeep*60)*60)*24))
#userId = Mk:load("userId")
? (userId = _) {
debug("User ID not found, fetching from API")
#user = Mk:api("i", {})
Mk:save("userId" user.id)
userId <- user.id
}
#notes = Mk:api("users/notes", {includeReplies: yes, untilDate: timeToKeep, userId: userId})
debug("Notes: ", Json:stringify(notes))
~~ (#note, notes) {
Mk:api("notes/delete", {noteId: note.id})
}
}
Async:interval((Plugin:config.loopTime*1000), cleanup, yes)
=> More informations about this toot | More toots from Thomas@fi.meyer-guillot.fr
@Thomas @minybolito Ah, cool ! J'avais fait une version 0.2 qui rajoutait le temps qu'on veut garder, mais euh ouais je l'ai perdu
=> More informations about this toot | More toots from Varpie@peculiar.florist
@Thomas purée merci je vais testé ça !!!
@Varpie oh nooooo !! c'est pas grave x)
=> More informations about this toot | More toots from minybolito@peculiar.florist
@Varpie @Thomas ça marche pas xDD "aiscript v0.1 not supported" tant pis tant pis
=> More informations about this toot | More toots from minybolito@peculiar.florist
@minybolito @Thomas Ouais comme je pensais faudrait le mettre à jour.
=> More informations about this toot | More toots from Varpie@peculiar.florist
@minybolito
il y avait un ticket, mais maintenant faudra attendre que la réécriture en .net soit plus avancée pour refaire la demande
iceshrimp.dev/iceshrimp/iceshrimp/issues/102
=> More informations about this toot | More toots from AntoineD@kwak.cab
@AntoineD ah yees vivement la .net !!!!
=> More informations about this toot | More toots from minybolito@peculiar.florist This content has been proxied by September (3851b).Proxy Information
text/gemini