Skip to content

Commit 4c0a976

Browse files
Merge pull request #679 from NicolasConstant/develop
1.9.1 PR
2 parents 9d34ebd + 99bd903 commit 4c0a976

File tree

8 files changed

+24
-9
lines changed

8 files changed

+24
-9
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
patreon: nicolasconstant
2+
ko_fi: nicolasconstant

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sengi",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"license": "AGPL-3.0-or-later",
55
"main": "main-electron.js",
66
"description": "A multi-account desktop client for Mastodon and Pleroma",

src/app/components/stream/status/quote/quote.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
Quoted another post
2525
</div>
2626
</div>
27-
<div class="quote quote__unaccepted" *ngIf="quoteState != 'accepted'">
27+
<div class="quote quote__unaccepted" *ngIf="quoteState != 'accepted' && !error">
2828
{{ getReadableStatus(quoteState) }}
2929
</div>
30-
<div class="quote quote__unaccepted" *ngIf="error">
30+
<div class="quote quote__error" *ngIf="error">
3131
{{ error }}
3232
</div>

src/app/components/stream/status/quote/quote.component.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
padding: 5px 10px;
1616
}
1717

18+
&__error {
19+
color: $quote-error-color;
20+
text-align: center;
21+
font-size: 12px;
22+
padding: 5px 10px;
23+
}
24+
1825
&__open-quote-btn {
1926
position: absolute;
2027
top: 0px;

src/app/components/stream/status/quote/quote.component.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export class QuoteComponent implements OnInit {
2323
quoteState: 'pending' | 'accepted' | 'rejected' | 'revoked' | 'deleted' | 'unauthorized' | 'blocked_account' | 'blocked_domain' | 'muted_account';
2424
error: string;
2525

26-
private quote: Quote;
27-
private shallowQuote: ShallowQuote;
26+
quote: Quote;
27+
shallowQuote: ShallowQuote;
2828

2929
@Output() browseAccountEvent = new EventEmitter<string>();
3030
@Output() browseHashtagEvent = new EventEmitter<string>();
@@ -54,7 +54,9 @@ export class QuoteComponent implements OnInit {
5454

5555
} else { // ShallowQuote
5656
this.shallowQuote = <ShallowQuote>value;
57-
this.mastodonService.getStatus(this.accountInfo, this.shallowQuote.quoted_status_id)
57+
58+
if(this.shallowQuote.quoted_status_id){
59+
this.mastodonService.getStatus(this.accountInfo, this.shallowQuote.quoted_status_id)
5860
.then(status => {
5961
this.displayStatus = status;
6062
this.appRef.tick();
@@ -64,6 +66,7 @@ export class QuoteComponent implements OnInit {
6466
this.error = "Error retrieving status.";
6567
this.appRef.tick();
6668
});
69+
}
6770
}
6871

6972
this.displayStatusWrapper = new StatusWrapper(this.displayStatus, this.accountInfo, false, false);

src/app/themes/implementations/default.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ export const defaultTheme: Theme = {
328328
"--attachment-icon-shadow-hover": "#4e4e4e",
329329

330330
"--quote-border-color": "#222736",
331-
"--quote-unaccepted-color": "#e46161",
331+
"--quote-unaccepted-color": "#ffffff",
332+
"--quote-error-color": "#e46161",
332333
"--quote-sub-quote-color": "#4e5572",
333334
"--quote-sub-quote-background": "#0c0c10"
334335
}

src/app/themes/implementations/light.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ export const lightTheme: Theme = {
336336
"--attachment-icon-shadow-hover": "#6b7280",
337337

338338
"--quote-border-color": "#9ca7b3",
339-
"--quote-unaccepted-color": "#e00b0b",
339+
"--quote-unaccepted-color": "#080b1b",
340+
"--quote-error-color": "#e00b0b",
340341
"--quote-sub-quote-color": "#ffffff",
341342
"--quote-sub-quote-background": "#bdc1ca"
342343
}

src/sass/_variables.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@
295295
--attachment-icon-shadow-hover: #4e4e4e;
296296

297297
--quote-border-color: orange;
298-
--quote-unaccepted-color: orangered;
298+
--quote-unaccepted-color: #ffffff;
299+
--quote-error-color: orangered;
299300
--quote-sub-quote-color: purple;
300301
--quote-sub-quote-background: aqua;
301302

@@ -523,5 +524,6 @@ $attachment-icon-shadow-hover: var(--attachment-icon-shadow-hover);
523524

524525
$quote-border-color: var(--quote-border-color);
525526
$quote-unaccepted-color: var(--quote-unaccepted-color);
527+
$quote-error-color: var(--quote-error-color);
526528
$quote-sub-quote-color: var(--quote-sub-quote-color);
527529
$quote-sub-quote-background: var(--quote-sub-quote-background);

0 commit comments

Comments
 (0)