Skip to content

Commit

Permalink
feat(Notifications): handle user edited post kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed May 15, 2023
1 parent 6e96c30 commit b7a6245
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Services/Accounts/InstanceAccount.vala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Tuba.InstanceAccount : API.Account, Streamable {
public const string KIND_POLL = "poll";
public const string KIND_FOLLOW_REQUEST = "follow_request";
public const string KIND_REMOTE_REBLOG = "__remote-reblog";
public const string KIND_EDITED = "update";

public string? backend { set; get; }
public API.Instance? instance_info { get; set; }
Expand Down Expand Up @@ -166,6 +167,11 @@ public class Tuba.InstanceAccount : API.Account, Streamable {
descr = _("Poll results");
descr_url = null;
break;
case KIND_EDITED:
icon = "document-edit-symbolic";
descr = _("%s edited a post").printf (account.display_name);
descr_url = null;
break;
default:
icon = null;
descr = null;
Expand Down

0 comments on commit b7a6245

Please sign in to comment.