Allow pinning/unpinning other users posts
This commit is contained in:
parent
401376d668
commit
1c50079f7b
2 changed files with 2 additions and 4 deletions
|
@ -53,7 +53,6 @@ export class NotePiningService {
|
|||
// Fetch pinee
|
||||
const note = await this.notesRepository.findOneBy({
|
||||
id: noteId,
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
if (note == null) {
|
||||
|
@ -92,7 +91,6 @@ export class NotePiningService {
|
|||
// Fetch unpinee
|
||||
const note = await this.notesRepository.findOneBy({
|
||||
id: noteId,
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
if (note == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue