tootle-linux-client/src/Views/Hashtag.vala

13 lines
370 B
Vala
Raw Normal View History

2019-03-11 15:14:37 +01:00
public class Tootle.Views.Hashtag : Views.Timeline {
2018-06-20 17:50:42 +02:00
2020-05-29 14:19:35 +02:00
public Hashtag (string tag) {
Object (timeline: @"tag/$tag");
2018-06-20 17:50:42 +02:00
}
2020-05-29 14:19:35 +02:00
public override string? get_stream_url () {
var tag = timeline.substring (4);
return account != null ? @"$(account.instance)/api/v1/streaming/?stream=hashtag&tag=$tag&access_token=$(account.token)" : null;
2018-06-20 17:50:42 +02:00
}
}