mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-22 05:11:26 +00:00
Added filter reblogs
This commit is contained in:
parent
02c1c0b912
commit
9c2e71a655
|
@ -3,6 +3,7 @@
|
||||||
"max_statuses": 40,
|
"max_statuses": 40,
|
||||||
"per_status_mode": false,
|
"per_status_mode": false,
|
||||||
"enabled_nsfw": false,
|
"enabled_nsfw": false,
|
||||||
|
"hide_reblogs": false,
|
||||||
"default_content_type": "text/markdown",
|
"default_content_type": "text/markdown",
|
||||||
"default_visibility": "unlisted",
|
"default_visibility": "unlisted",
|
||||||
"format_time": "+%d.%m.%Y %H:%M:%S",
|
"format_time": "+%d.%m.%Y %H:%M:%S",
|
||||||
|
|
|
@ -6,6 +6,7 @@ instance_point="https://$instance/api/v1"
|
||||||
instance_point_pleroma="https://$instance/api/pleroma"
|
instance_point_pleroma="https://$instance/api/pleroma"
|
||||||
instance_hist='instance.hist'
|
instance_hist='instance.hist'
|
||||||
enabled_nsfw=$(jj -i config.json enabled_nsfw)
|
enabled_nsfw=$(jj -i config.json enabled_nsfw)
|
||||||
|
hide_reblogs=$(jj -i config.json hide_reblogs)
|
||||||
max_statuses=$(jj -i config.json max_statuses)
|
max_statuses=$(jj -i config.json max_statuses)
|
||||||
default_visibility=$(jj -i config.json default_visibility)
|
default_visibility=$(jj -i config.json default_visibility)
|
||||||
default_content_type=$(jj -i config.json default_content_type)
|
default_content_type=$(jj -i config.json default_content_type)
|
||||||
|
@ -325,9 +326,11 @@ statuses_render()
|
||||||
fi
|
fi
|
||||||
for i in $ids_massive; do
|
for i in $ids_massive; do
|
||||||
status=$(echo "$jsonmassive" | jj "#[id=$i]")
|
status=$(echo "$jsonmassive" | jj "#[id=$i]")
|
||||||
|
|
||||||
whoacct=$(echo "$status" | jj account.acct)
|
|
||||||
reblog=$(echo "$status" | jj reblog.id)
|
reblog=$(echo "$status" | jj reblog.id)
|
||||||
|
if [ "$hide_reblogs" = 'true' ] && [ -n "$reblog" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
whoacct=$(echo "$status" | jj account.acct)
|
||||||
reblogacct=$(echo "$status" | jj reblog.account.acct)
|
reblogacct=$(echo "$status" | jj reblog.account.acct)
|
||||||
uri=$(echo "$status" | jj uri)
|
uri=$(echo "$status" | jj uri)
|
||||||
id_status=$(echo "$status" | jj id)
|
id_status=$(echo "$status" | jj id)
|
||||||
|
|
Loading…
Reference in a new issue