From 5aa6fcf4ff20ac58acfd5ccf0c165a8a2f5e92a8 Mon Sep 17 00:00:00 2001 From: feruzm Date: Wed, 2 Dec 2026 05:52:43 +0000 Subject: [PATCH 1/2] Announce the Ecency 4.0 mobile release --- dotnet/EcencyApi/Handlers/Announcements.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dotnet/EcencyApi/Handlers/Announcements.cs b/dotnet/EcencyApi/Handlers/Announcements.cs index d7341be7..fa9a291f 100644 --- a/dotnet/EcencyApi/Handlers/Announcements.cs +++ b/dotnet/EcencyApi/Handlers/Announcements.cs @@ -34,6 +34,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, + }, }; } From 8f5fbf56c0bff26d086c5df2be8c829472fcd479 Mon Sep 17 00:00:00 2001 From: feruzm Date: Wed, 2 Dec 2026 06:21:05 +0000 Subject: [PATCH 2/2] Document that an announcement path can be a list of patterns --- dotnet/EcencyApi/Handlers/Announcements.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotnet/EcencyApi/Handlers/Announcements.cs b/dotnet/EcencyApi/Handlers/Announcements.cs index fa9a291f..cb81ea97 100644 --- a/dotnet/EcencyApi/Handlers/Announcements.cs +++ b/dotnet/EcencyApi/Handlers/Announcements.cs @@ -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