Aiuto e supporto solidale

Wiki di Orwell Fun Community

Strumenti Utente

Strumenti Sito


faq

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisioneRevisione precedente
Prossima revisione
Revisione precedente
faq [2022/05/04 05:57] doefaq [2024/02/05 22:17] (versione attuale) – creata smith
Linea 1: Linea 1:
-====== Frequently Asked Questions ====== +====== Domande poste di frequente ====== 
-Le domande poste di sovente...  +Segue una lista di soluzioni a problemi sporadici.
-Per [[https://docs.orwell.fun/doku.php?id=faq&do=edit|aggiungere una domanda]] , occorre modificare la pagina e aggiungere seguendo l'esempio +
  
 +===== Non riesco più a vedere la pagina dei post programmati =====
 +R: potrebbe essersi rotta. Occorre [[https://orwell.fun/api/v1/scheduled_statuses|recuperare dalle API l'elenco dei post che sono stati programmati]]
  
----- +Scegliere l'ID dell'ultimo post inserito (probabilmente quello con numero più alto) ed eliminarlo usando il seguente codice da inserire nella console del browser
-D: Questa è la mia domanda di esempio?  --- //[[https://orwell.fun/@smith|Winston Smith]] 2022/05/03 22:01//+
  
-R: Sotto ci sarà la la risposta!+<code javascript>
  
----- +(() => { 
-D: Cos'è la Orwell Fun Community?  --- //[[https://orwell.fun/@doe|John Doe]] 2022/05/04 07:39//+  // Replace 'YOUR_NUMBER' with the actual number you want to use 
 +  const scheduledStatusId = 915; 
 +  const url = `https://orwell.fun/api/v1/scheduled_statuses/${scheduledStatusId}`;
  
-REun social network basato sul software open source chiamato Pleroma e che fa parte del Fediverso. +  async function deleteScheduledStatus() { 
-----+    try { 
 +      const response = await fetch(url, { 
 +        method: 'DELETE', 
 +        headers:
 +          'Content-Type': 'application/json', 
 +          // You may need to include additional headers if required by the API 
 +          // For example, if you have an authentication token: 
 +          // 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 
 +        }, 
 +      });
  
 +      if (!response.ok) {
 +        throw new Error(`Failed to delete scheduled status. Status: ${response.status}`);
 +      }
  
 +      const result = await response.json();
 +      console.log('Scheduled status deleted successfully:', result);
 +    } catch (error) {
 +      console.error('Error deleting scheduled status:', error.message);
 +    }
 +  }
  
 +  // Call the function to initiate the DELETE request
 +  deleteScheduledStatus();
 +})();
 +
 +</code>
faq.1651643828.txt.gz · Ultima modifica: 2022/05/04 05:57 da doe