One who goes from a place where they are fasting to a place where they are not fasting, if he was not in his city at all at the time they accepted the fast upon themselves—the fast does not take effect upon him at all. And in this regard, "the stringencies of the place from which he departed" does not apply, for they do not decree upon one who is not in the city (see Taz). But if he was in his city at the time they decreed the fast, and he also accepted the fast upon himself—he is obligated to fast and complete it, even if he does not intend to return. However, if he was in the city and he did not explicitly accept the fast upon himself, in this it depends: if he intends to return—behold he is included among them, and they place upon him the stringencies of the place from which he departed, and he is obligated to fast and complete it. And if he does not intend to return—the fast does not take effect upon him, as with all matters where they do not place upon him the stringencies of the place from which he departed when he does not intend to return. (And with this the words of Rashi and Tosafot in Taanit 10a are clarified. For Rashi, in the comment beginning "to a place," explained: because of the stringencies of the place. And Tosafot, in the comment beginning "One who goes," explained: even if he does not intend to return, see there. And they do not disagree, as I have written, see there. Examine it closely and you will find it simple.)
ההולך ממקום שמתענין למקום שאין מתענים, אם לא היה בעירו כלל בשעה שקבלו עליהם התענית – אין התענית חל עליו כלל. ובזה לא שייך "חומרי מקום שיצא משם", דאין גוזרין על מי שאינו בהעיר (עיין ט"ז). ואם היה בעירו בשעה שגזרו התענית, וגם הוא קיבל עליו התענית – חייב להתענות ולהשלים, אפילו אין דעתו לחזור. אך אם היה בעיר והוא לא קיבל עליו בפירוש את התענית, בזה תלוי אם דעתו לחזור – הרי הוא כלול בתוכם, ונותנים עליו חומרי המקום שיצא משם, וחייב להתענות ולהשלים. ואם אין דעתו לחזור – אין התענית חל עליו, כמו בכל הדברים שאין נותנים עליו חומרי מקום שיצא משם באין דעתו לחזור. (ובזה מבוארין דברי רש"י ותוספות בתענית י א. דרש"י דיבור המתחיל "למקום" פירש: משום חומרי מקום. ותוספות דיבור המתחיל "ההולך" פירשו: אפילו אין דעתו לחזור, עיין שם. ולא פליגי כמו שכתבתי, עיין שם. ודייק ותמצא קל.)