1
0
mirror of https://gitlab.gnome.org/World/tootle synced 2025-02-02 08:56:53 +01:00

Escaped plus chars in toots too

This commit is contained in:
bleakgrey 2018-06-01 20:08:00 +03:00
parent 0425f6716a
commit e972f7185b
2 changed files with 3 additions and 5 deletions

View File

@ -33,7 +33,7 @@ public class Tootle.Utils{
}
public static string encode (string content) {
var to_escape = ";&";
var to_escape = ";&+";
return Soup.URI.encode (content, to_escape);
}

View File

@ -145,15 +145,13 @@ public class Tootle.StatusWidget : Gtk.EventBox {
spoiler_button = new Button.from_icon_name ("mail-attachment-symbolic", Gtk.IconSize.BUTTON);
spoiler_button.label = spoiler_button_text;
spoiler_button.always_show_image = true;
spoiler_button.hexpand = true;
spoiler_button.halign = Gtk.Align.END;
content_label.margin_top = 6;
}
else {
spoiler_button = new Button.with_label (spoiler_button_text);
}
spoiler_button.hexpand = true;
spoiler_button.halign = Gtk.Align.END;
}
spoiler_button.clicked.connect (() => revealer.set_reveal_child (!revealer.child_revealed));
var spoiler_text = _("[ This post contains sensitive content ]");