Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion dotnet/EcencyApi/Handlers/Announcements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ namespace EcencyApi.Handlers;
/// description - description of announcement
/// button_text - text of actionable button
/// button_link - link that actionable button opens
/// path - which path it should show, supports regex on location
/// path - which path it should show: a regex on the location, or an array of them
/// (shown when any matches). Only web reads it; the mobile apps show every
/// entry wherever they are
/// auth - should there be authorized/logged in user to show announcement
/// ops - hive uri format operation for mobile app signing
/// proposal_ids - hive proposal ids for an inline support prompt; web builds the
Expand All @@ -34,6 +36,16 @@ public static class Announcements
["proposal_ids"] = new JsonArray { 379 },
["ops"] = "hive://sign/op/WyJ1cGRhdGVfcHJvcG9zYWxfdm90ZXMiLHsidm90ZXIiOiAiX19zaWduZXIiLCJwcm9wb3NhbF9pZHMiOiBbMzc5XSwiYXBwcm92ZSI6dHJ1ZSwiZXh0ZW5zaW9ucyI6IFtdfV0.",
},
new JsonObject
{
["id"] = 111,
["title"] = "Ecency 4.0 for iOS and Android",
["description"] = "Our mobile app is rebuilt as a native app, with Listen in the background, widgets and more. Update from your app store, your accounts come with you.",
["button_text"] = "See what's new",
["button_link"] = "/@ecency/ecency-mobile-4-0-rebuilt",
["path"] = new JsonArray { "^/$", "^/(hot|trending|created|feed|waves)(/|$)", "^/@[^/]+/(blog|posts|wallet|points|feed)$" },
["auth"] = false,
},
};
}

Expand Down
Loading