mirror of
https://gitlab.gnome.org/World/tootle
synced 2025-02-08 23:58:45 +01:00
Escaped plus chars in toots too
This commit is contained in:
parent
0425f6716a
commit
e972f7185b
@ -33,7 +33,7 @@ public class Tootle.Utils{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static string encode (string content) {
|
public static string encode (string content) {
|
||||||
var to_escape = ";&";
|
var to_escape = ";&+";
|
||||||
return Soup.URI.encode (content, to_escape);
|
return Soup.URI.encode (content, to_escape);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 = new Button.from_icon_name ("mail-attachment-symbolic", Gtk.IconSize.BUTTON);
|
||||||
spoiler_button.label = spoiler_button_text;
|
spoiler_button.label = spoiler_button_text;
|
||||||
spoiler_button.always_show_image = true;
|
spoiler_button.always_show_image = true;
|
||||||
spoiler_button.hexpand = true;
|
|
||||||
spoiler_button.halign = Gtk.Align.END;
|
|
||||||
content_label.margin_top = 6;
|
content_label.margin_top = 6;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
spoiler_button = new Button.with_label (spoiler_button_text);
|
spoiler_button = new Button.with_label (spoiler_button_text);
|
||||||
spoiler_button.hexpand = true;
|
|
||||||
spoiler_button.halign = Gtk.Align.END;
|
|
||||||
}
|
}
|
||||||
|
spoiler_button.hexpand = true;
|
||||||
|
spoiler_button.halign = Gtk.Align.END;
|
||||||
spoiler_button.clicked.connect (() => revealer.set_reveal_child (!revealer.child_revealed));
|
spoiler_button.clicked.connect (() => revealer.set_reveal_child (!revealer.child_revealed));
|
||||||
|
|
||||||
var spoiler_text = _("[ This post contains sensitive content ]");
|
var spoiler_text = _("[ This post contains sensitive content ]");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user