Ancestors

Toot

Written by Minybol 🥔 on 2025-01-24 at 10:30

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

Descendants

Written by Pebble on 2025-01-24 at 10:35

@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

Written by 🪨 on 2025-01-24 at 10:50

@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

Written by 🪨 on 2025-01-24 at 10:53

@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

Written by Pebble on 2025-01-24 at 11:02

@Varpie

Merci d'avoir cherché en tout cas ! ​:meow_heart_hug:​

@minybolito

=> More informations about this toot | More toots from PebbleOnEarth@peculiar.florist

Written by Minybol 🥔 on 2025-01-24 at 11:22

@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

Written by Snoopy on 2025-01-24 at 10:38

@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

Written by Thomas on 2025-01-24 at 10:52

@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

Written by 🪨 on 2025-01-24 at 10:54

@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

Written by Minybol 🥔 on 2025-01-24 at 11:20

@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

Written by Minybol 🥔 on 2025-01-24 at 11:22

@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

Written by 🪨 on 2025-01-24 at 12:07

@minybolito @Thomas Ouais comme je pensais faudrait le mettre à jour.

=> More informations about this toot | More toots from Varpie@peculiar.florist

Written by AntoineÐ on 2025-01-24 at 11:28

@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

Written by Minybol 🥔 on 2025-01-24 at 11:47

@AntoineD ah yees vivement la .net !!!!

=> More informations about this toot | More toots from minybolito@peculiar.florist

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113882866474460037
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
337.622928 milliseconds
Gemini-to-HTML Time
4.112309 milliseconds

This content has been proxied by September (3851b).