Consider a case when users.inbox is nil (Fix 3241)
Fix "Followers only" does not send a note to other instances. (#3241)
Closes #3241 (closed)
users.inbox can be nil:
pleroma=# \d users
Table "public.users"
Column | Type | Collation | Nullable | Default
--------------------------------------+--------------------------------+-----------+----------+-------------------------------------------------------------------------------------------
...
inbox | text | | |
But currently, it is not handled. In this MR, handle cases when inbox is nil.
Checklist
-
Adding a changelog: In the changelog.d
directory, create a file named<code>.<type>
.<code>
can be anything, but we recommend using a more or less unique identifier to avoid collisions, such as the branch name.<type>
can beadd
,change
,remove
,fix
,security
orskip
.skip
is only used if there is no user-visible change in the MR (for example, only editing comments in the code). Otherwise, choose a type that corresponds to your change.In the file, write the changelog entry. For example, if an MR adds group functionality, we can create a file named
group.add
and writeAdd group functionality
in it.If one changelog entry is not enough, you may add more. But that might mean you can split it into two MRs. Only use more than one changelog entry if you really need to (for example, when one change in the code fix two different bugs, or when refactoring).