ffgg
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Michael Grote 2024-05-07 03:00:24 +02:00
parent 9ce0ef483c
commit 62b046e08b
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ function mark_as_read {
# wenn NICHT leer
# sed wandelt 123 345 456 in 123, 245, 345 um.
if [[ -n "$marked_entries" ]]; then
curl --request PUT --silent --header "X-Auth-Token: $MF_AUTH_TOKEN" --header "Content-Type: application/json" --data "{\"entry_ids\": [$(echo "$marked_entries"], \"status\": \"read\"}" "$MF_API_URL/entries"
curl --request PUT --silent --header "X-Auth-Token: $MF_AUTH_TOKEN" --header "Content-Type: application/json" --data "{\"entry_ids\": "$marked_entries"], \"status\": \"read\"}" "$MF_API_URL/entries"
# gebe entry-titel aus
for i in $(echo "$marked_entries" | xargs -n1 | sort -u | xargs); do
# gebe aus welcher eintrag gefiltert wurde, cut begrenzt die maximale laenge auf 100 zeichen