nit
This commit is contained in:
@@ -540,7 +540,6 @@ func (srv *Server) WebPost(c echo.Context) error {
|
|||||||
postRecord, ok := postView.Record.Val.(*appbsky.FeedPost)
|
postRecord, ok := postView.Record.Val.(*appbsky.FeedPost)
|
||||||
if ok {
|
if ok {
|
||||||
data["postText"] = ExpandPostText(postRecord)
|
data["postText"] = ExpandPostText(postRecord)
|
||||||
}
|
|
||||||
|
|
||||||
if !isEmbedHidden && postRecord.Labels != nil && postRecord.Labels.LabelDefs_SelfLabels != nil {
|
if !isEmbedHidden && postRecord.Labels != nil && postRecord.Labels.LabelDefs_SelfLabels != nil {
|
||||||
for _, label := range postRecord.Labels.LabelDefs_SelfLabels.Values {
|
for _, label := range postRecord.Labels.LabelDefs_SelfLabels.Values {
|
||||||
@@ -551,6 +550,7 @@ func (srv *Server) WebPost(c echo.Context) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if postView.Embed != nil && !isEmbedHidden {
|
if postView.Embed != nil && !isEmbedHidden {
|
||||||
hasImages := postView.Embed.EmbedImages_View != nil
|
hasImages := postView.Embed.EmbedImages_View != nil
|
||||||
|
|||||||
Reference in New Issue
Block a user