Unverified Commit 6e871ad6 authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix `fedify inbox` bug where it ignored `-a`

parent cda42656
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -8,6 +8,11 @@ Version 0.13.4

To be released.

 -  Fixed `fedify inbox` command where it had ignored `-a`/`--accept-follow`
    options when no `-f`/`--follow` option was provided.  [[#132]]

[#132]: https://github.com/dahlia/fedify/issues/132


Version 0.13.3
--------------
+3 −1
Original line number Diff line number Diff line
@@ -81,10 +81,12 @@ export const command = new Command()
    });
    spinner.start();
    const fedCtx = federation.createContext(server.url, -1);
    if (options.acceptFollow != null && options.acceptFollow.length > 0) {
      acceptFollows.push(...(options.acceptFollow ?? []));
    }
    if (options.follow != null && options.follow.length > 0) {
      spinner.text = "Following actors...";
      const documentLoader = await fedCtx.getDocumentLoader({ handle: "i" });
      acceptFollows.push(...(options.acceptFollow ?? []));
      for (const uri of options.follow) {
        spinner.text = `Following ${colors.green(uri)}...`;
        const actor = await lookupObject(uri, { documentLoader });