Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabboman committed Feb 15, 2025
1 parent 062c90e commit 7f4d949
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 23 deletions.
27 changes: 4 additions & 23 deletions packages/frontend/src/app/components/post/post.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,9 @@
}"
>
@for (content of post; track $index; let index = $index) {
<hr />
<div
*ngIf="
content.content !== '' ||
(content.medias && content.medias.length > 0) ||
index === 0 ||
content.tags.length > 0 ||
content.quotes.length > 0 ||
content.questionPoll
"
id="fragment"
>
<div *ngIf="!content.isRewoot" id="fragment">
<hr />

<app-post-header class="w-full" [fragment]="content" [simplified]="false"></app-post-header>
<app-post-fragment (forceExpand)="expanded = true" [fragment]="content"></app-post-fragment>
</div>
Expand All @@ -60,17 +51,7 @@
<marquee>Thread collapsed because it's very long but we show you the end of the thread</marquee>
<hr style="margin-top: 10vh" />
@for (content of finalPosts; track $index; let index = $index) {
<div
*ngIf="
content.content !== '' ||
(content.medias && content.medias.length > 0) ||
index === 0 ||
content.tags.length > 0 ||
content.quotes.length > 0 ||
content.questionPoll
"
id="fragment"
>
<div *ngIf="!content.isRewoot" id="fragment">
<hr />
<app-post-header class="w-full" [fragment]="content" [simplified]="false"></app-post-header>
<app-post-fragment [fragment]="content"></app-post-fragment>
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/app/interfaces/processed-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ export interface ProcessedPost {
ask?: Ask
markdownContent: string
bskyUri?: string
isRewoot: boolean
}
1 change: 1 addition & 0 deletions packages/frontend/src/app/interfaces/unlinked-posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface basicPost {
notes?: number
quotes?: basicPost[]
markdownContent: string
isRewoot: boolean
}

export interface EmojiRelations {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
if (!this.jwtService.tokenValid()) {
this.posts.push([
{
isRewoot: false,
quotes: [],
emojiReactions: [],
id: '872c9649-5043-460e-a9df-c35a568c8aef',
Expand Down

0 comments on commit 7f4d949

Please sign in to comment.