pleroma: fix exclude_visibilities
This commit is contained in:
parent
79f15e0439
commit
b623cb5fc6
1 changed files with 3 additions and 4 deletions
|
@ -441,7 +441,6 @@ public class Pleroma
|
|||
/// <param name="instance">Show only statuses from the given domain</param>
|
||||
/// <param name="only_media">Show only statuses with media attached?</param>
|
||||
/// <param name="with_muted">Include activities by muted users</param>
|
||||
/// <param name="exclude_visibilities">Exclude the statuses with the given visibilities</param>
|
||||
/// <param name="reply_visibility">Filter replies.</param>
|
||||
/// <param name="max_id">Return items older than this ID</param>
|
||||
/// <param name="min_id">Return the oldest items newer than this ID</param>
|
||||
|
@ -454,7 +453,6 @@ public class Pleroma
|
|||
string? instance = null,
|
||||
bool only_media = false,
|
||||
bool with_muted = false,
|
||||
StatusVisibility[]? exclude_visibilities = null,
|
||||
ReplyVisibility reply_visibility = ReplyVisibility.All,
|
||||
string? max_id = null,
|
||||
string? min_id = null,
|
||||
|
@ -493,7 +491,6 @@ public class Pleroma
|
|||
if (only_media) addPair("only_media", "true");
|
||||
if (remote) addPair("remote", "true");
|
||||
if (with_muted) addPair("with_muted", "true");
|
||||
if (exclude_visibilities != null) addPair("exclude_visibilities", JsonSerializer.Serialize(exclude_visibilities));
|
||||
if (reply_visibility != ReplyVisibility.All) addPair("reply_visibility", reply_visibility.ToString().ToLowerInvariant());
|
||||
if (max_id != null) addPair("max_id", max_id);
|
||||
if (min_id != null) addPair("min_id", min_id);
|
||||
|
@ -543,7 +540,9 @@ public class Pleroma
|
|||
if (with_muted) addPair("with_muted", "true");
|
||||
if (exclude_reblogs) addPair("exclude_reblogs", "true");
|
||||
if (exclude_replies) addPair("exclude_replies", "true");
|
||||
if (exclude_visibilities != null) addPair("exclude_visibilities", JsonSerializer.Serialize(exclude_visibilities));
|
||||
if (exclude_visibilities != null)
|
||||
foreach (StatusVisibility visibility in exclude_visibilities)
|
||||
addPair("exclude_visibilities[]", visibility.ToString().ToLowerInvariant());
|
||||
if (max_id != null) addPair("max_id", max_id);
|
||||
if (min_id != null) addPair("min_id", min_id);
|
||||
if (since_id != null) addPair("since_id", since_id);
|
||||
|
|
Loading…
Reference in a new issue